package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.mapper.NCustomerMapper;
import com.jiyun.pojo.NCustomer;
import com.jiyun.service.INCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NCustomerImpl extends ServiceImpl<NCustomerMapper, NCustomer> implements INCustomerService {

    @Autowired
    private NCustomerMapper nCustomerMapper;

    @Override
    public NCustomer findOne(Integer id) {
       return nCustomerMapper.findOne(id);
    }

    @Override
    public List<NCustomer> findAll() {
        return nCustomerMapper.findAll();
    }

    @Override
    public NCustomer findPhone(String phone) {
        return nCustomerMapper.findPhone(phone);
    }
}
